package com.gaofans.vertx.boot.dbutils.mapper.columns;

import com.gaofans.vertx.boot.dbutils.mapper.ColumnMapper;
import io.vertx.sqlclient.Row;

public class FloatColumnMapper implements ColumnMapper {
    @Override
    public boolean match(Class<?> propType) {
        return propType.equals(Float.TYPE) || propType.equals(Float.class);
    }

    @Override
    public Object apply(Row r,String columnName) {
        return r.getFloat(columnName);
    }
}
